<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div>
    <h1>{{c.gradeLevel}}{{c.name}} 班主任:{{c.teacherName}}</h1>
</div>

<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<script>
    let v = new Vue({
        el:"body>div",
        data:{
            c:{name:"",teacherName:"",gradeLevel:""},
            arr:[]
        },
        methods:{

        },
        created:function () {
            axios.get("/class/selectById"+location.search).then(function (response) {
                v.c=response.data;
            })
        }
    })
</script>
</body>
</html>